<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全部留言</title>
    <link rel="stylesheet" type="text/css" href="css/base.css">
    <script language='javascript'>
        function Sel(stype)
        {
            for(var i=0;i < document.getElementsByName('aids').length;i++)
            {
                if(stype=='all') document.getElementsByName('aids')[i].checked=true;
                else document.getElementsByName('aids')[i].checked=false;
            }
        }
        function checkSubmit()
        {
            var str = '';
            for(var i=0;i < document.getElementsByName('aids').length;i++)
            {
                if(document.getElementsByName('aids')[i].checked){
                    if(str=='') str += document.getElementsByName('aids')[i].value;
                    else str += ',' + document.getElementsByName('aids')[i].value;
                }
            }
            if(str=='')
            {
                alert('你没选择任何内容！');
                return false;
            }
            else
            {
                location="usermsg_edit.php?aids="+str+"&dopost=delall";
            }
        }
    </script>
</head>
<body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
<form name='form1' method='post' action='usermsg_edit.php' onSubmit='return checkSubmit();'>
    <input type='hidden' name='dopost' value='delall'/>
    <input type='hidden' name='allid' value=''/>
    <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" style="margin-top:8px">
        <tr bgcolor="#E7E7E7" >
            <td height="28" colspan="11" background="images/tbg.gif" style="padding-left:10px;">
                ◆ 在线留言 &gt; 全部留言
            </td>
        </tr>
        <tr align="center" bgcolor="#FBFCE2" height="25">
            <td width="4%">ID</td>
            <td width="4%">选择</td>
            <td width="6%">昵称</td>
            <td width="8%">联系方式</td>
            <td width="8%">Email</td>
            <td width="15%">留言内容</td>
            <td width="10%">留言时间</td>
            <td width="10%">留言IP</td>
            <td width="15%">回复内容</td>
            <td width="10%">回复时间</td>
            <td width="8%">管理</td>
        </tr>
        {dede:datalist}
        <tr align='center' bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
            <td>{dede:field.id/}</td>
            <td><input type='checkbox' name='aids' value='{dede:field.id/}' class='np'></td>
            <td>{dede:field.username/}</td>
            <td>{dede:field.tel/}</td>
            <td>{dede:field.email/}</td>
            <td>{dede:field.content/}</td>
            <td>{dede:field.time/}</td>
            <td>{dede:field.create/}</td>
            <td>{dede:field.reply/}</td>
            <td>{dede:field.replytime/}</td>
            <td>
                <a href='usermsg_edit.php?id={dede:field.id/}&dopost=getedit'>[回复]</a>
                <a href='usermsg_edit.php?id={dede:field.id/}&dopost=delete'>[删除]</a>
            </td>
        </tr>
        {/dede:datalist}
        <tr bgcolor="#ffffff" height="28">
            <td colspan="11">
                <a href='#' onclick='Sel("all")' class='np coolbg'>[全选]</a>
                <a href='#' onclick='Sel("none")' class='np coolbg'>[取消]</a>
                <a href='#' onclick='checkSubmit()' class='np coolbg'>批量删除</a>
            </td>
        </tr>
        <tr align="center" bgcolor="#F9FCEF" height="28">
            <td colspan="11">
                {dede:pagelist listsize=6/}
            </td>
        </tr>
    </table>
</form>
</body>
</html>